package busca.tesoros.uclm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class AyudaActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ayuda);
        
        View ButtonMisiones = findViewById(R.id.button_misiones);
        ButtonMisiones.setOnClickListener(this); 
        
        View ButtonAbout = findViewById(R.id.button_about);
        ButtonAbout.setOnClickListener(this); 
        
        View ButtonHelp = findViewById(R.id.button_help);
        ButtonHelp.setOnClickListener(this); 
}

	public void onClick(View v) {
    	switch (v.getId()) {
    	case R.id.button_misiones:
    		Intent i = new Intent(this, SelMisionActivity.class);
    		startActivity(i);
    		break;  
    		
    	case R.id.button_about:
    		Intent ii = new Intent(this, AcercaDeActivity.class);
    		startActivity(ii);
    		break; 
    		
    		
    	case R.id.button_help:
    		Intent iii = new Intent(this, InfoAyudaActivity.class);
    		startActivity(iii);
    		break;  
    }
		
	}
}
